MIDIOutputClose
(Method)
Purpose: Closes the MIDI-Output Port.
Syntax: CtlName.MIDIOutputClose
Arguments: None.
Example:
Private Sub
Command1_Click()
____'Play a
Middle-C at full volume
____SoundCard1.MIDIOutputOpen
____SoundCard1.MIDISendNoteOn
1, 60, 127
End Sub
Private Sub
Command2_Click()
____'Turn
it off again
____SoundCard1.MIDISendNoteOff
1, 60, 0
____'It
would have been turned off even if the Velocity was more than
zero
____SoundCard1.MIDIOutputClose
End Sub
Comments: Remember to close the MIDI-Output or an Error will occur when you try to open it from another app.
See Also:
MIDIOutputOpen
MIDIInputOpen
MIDIInputClose